package com.zky.system.mapper;

import com.zky.system.domain.Role;
import com.zky.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2023-02-13
 */
public interface RoleMapper extends BaseMapper<Role> {

    void addRoleMenus(@Param("id") Long id,@Param("menus") List<Long> menus);

    void addRolePermissions(@Param("id") Long id, @Param("permissions") List<Long> permissions);

    void deleteMuneByRoleId(Long id);

    void deleteEmployeeRoleByRoleId(Long id);

    void deletePermissionByRoleId(Long id);
}
